package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Banner;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * banner持久化接口
 */
public interface BannerRepository extends MongoRepository<Banner, String>{


    /**
     * 根据类型查banner
     * @param state
     * @param type
     * @param pageable
     * @return
     */
    List<Banner> findBannerByTypeAndState(int type,int state,Pageable pageable);

}
